﻿namespace WMS6.Web.TaskMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="TaskManagerUserInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DebuggerStepThrough]
    public class TaskManagerUserInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string EquipmentProfileIDField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string LastCaseIdPickedField;
        [OptionalField]
        private string LastLocField;
        [OptionalField]
        private string LastToLocField;
        [OptionalField]
        private string LastWaveIDField;
        [OptionalField]
        private string PriorityTaskTypeField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StrategyIDField;
        [OptionalField]
        private List<TaskManagerUserDetailInfo> TaskManagerUserDetailInfosField;
        [OptionalField]
        private string TaskStrategyIDField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string UserGroupField;
        [OptionalField]
        private string UserIDField;
        [OptionalField]
        private string UsrFnameField;
        [OptionalField]
        private string UsrLnameField;
        [OptionalField]
        private string UsrNameField;
        [OptionalField]
        private int UsrStatusField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string EquipmentProfileID
        {
            get
            {
                return this.EquipmentProfileIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EquipmentProfileIDField, value))
                {
                    this.EquipmentProfileIDField = value;
                    this.RaisePropertyChanged("EquipmentProfileID");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string LastCaseIdPicked
        {
            get
            {
                return this.LastCaseIdPickedField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LastCaseIdPickedField, value))
                {
                    this.LastCaseIdPickedField = value;
                    this.RaisePropertyChanged("LastCaseIdPicked");
                }
            }
        }

        [DataMember]
        public string LastLoc
        {
            get
            {
                return this.LastLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LastLocField, value))
                {
                    this.LastLocField = value;
                    this.RaisePropertyChanged("LastLoc");
                }
            }
        }

        [DataMember]
        public string LastToLoc
        {
            get
            {
                return this.LastToLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LastToLocField, value))
                {
                    this.LastToLocField = value;
                    this.RaisePropertyChanged("LastToLoc");
                }
            }
        }

        [DataMember]
        public string LastWaveID
        {
            get
            {
                return this.LastWaveIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LastWaveIDField, value))
                {
                    this.LastWaveIDField = value;
                    this.RaisePropertyChanged("LastWaveID");
                }
            }
        }

        [DataMember]
        public string PriorityTaskType
        {
            get
            {
                return this.PriorityTaskTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PriorityTaskTypeField, value))
                {
                    this.PriorityTaskTypeField = value;
                    this.RaisePropertyChanged("PriorityTaskType");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string StrategyID
        {
            get
            {
                return this.StrategyIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StrategyIDField, value))
                {
                    this.StrategyIDField = value;
                    this.RaisePropertyChanged("StrategyID");
                }
            }
        }

        [DataMember]
        public List<TaskManagerUserDetailInfo> TaskManagerUserDetailInfos
        {
            get
            {
                return this.TaskManagerUserDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TaskManagerUserDetailInfosField, value))
                {
                    this.TaskManagerUserDetailInfosField = value;
                    this.RaisePropertyChanged("TaskManagerUserDetailInfos");
                }
            }
        }

        [DataMember]
        public string TaskStrategyID
        {
            get
            {
                return this.TaskStrategyIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TaskStrategyIDField, value))
                {
                    this.TaskStrategyIDField = value;
                    this.RaisePropertyChanged("TaskStrategyID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string UserGroup
        {
            get
            {
                return this.UserGroupField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UserGroupField, value))
                {
                    this.UserGroupField = value;
                    this.RaisePropertyChanged("UserGroup");
                }
            }
        }

        [DataMember]
        public string UserID
        {
            get
            {
                return this.UserIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UserIDField, value))
                {
                    this.UserIDField = value;
                    this.RaisePropertyChanged("UserID");
                }
            }
        }

        [DataMember]
        public string UsrFname
        {
            get
            {
                return this.UsrFnameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UsrFnameField, value))
                {
                    this.UsrFnameField = value;
                    this.RaisePropertyChanged("UsrFname");
                }
            }
        }

        [DataMember]
        public string UsrLname
        {
            get
            {
                return this.UsrLnameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UsrLnameField, value))
                {
                    this.UsrLnameField = value;
                    this.RaisePropertyChanged("UsrLname");
                }
            }
        }

        [DataMember]
        public string UsrName
        {
            get
            {
                return this.UsrNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UsrNameField, value))
                {
                    this.UsrNameField = value;
                    this.RaisePropertyChanged("UsrName");
                }
            }
        }

        [DataMember]
        public int UsrStatus
        {
            get
            {
                return this.UsrStatusField;
            }
            set
            {
                if (!this.UsrStatusField.Equals(value))
                {
                    this.UsrStatusField = value;
                    this.RaisePropertyChanged("UsrStatus");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

